import axios from "axios";
import service from "@/config/index";

export default {
  // 创建印章申请
  create (filter) {
    return axios.post(`${service.serviceCert}/seal/apply`, filter);
  },
  // 更新印章申请
  update (filter) {
    return axios.put(`${service.serviceCert}/seal/apply/update`, filter);
  },
  // 获取公司最新印章申请记录
  getApplyByTenantId () {
    return axios.get(`${service.serviceCert}/seal/apply/get`);
  },
  // 获取申请信息
  getApplyDetails (applyId) {
    return axios.get(`${service.serviceCert}/seal/apply/getById/${applyId}`);
  },
  // 校验双方公司是否开通印章功能
  checkSeal (tenantIdOne, tenantIdTwo) {
    return axios.get(`${service.serviceCert}/seal/checkSeal/${tenantIdOne}/${tenantIdTwo}`);
  },
};
